package com.jdz.controller;


import com.jdz.dao.NoiseDao;
import com.jdz.entities.FlyRow;
import com.jdz.service.NoiseService;
import com.jdz.tools.Interpolation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

@RestController
@Slf4j
public class NoiseController {
    @Resource
    private NoiseService noiseService;

    @Resource
    private NoiseDao noiseDao;

    @GetMapping(value = "/noise/test")
    public String test(){
        return "hello world";
    }
    @GetMapping(value = "/noise/add")
    public int  getAll(){
        FlyRow flyRow = Interpolation.getOne();
        return noiseDao.addFlyStatus(flyRow,0.000009765630238689482,0.000039062499126885086);
    }


}
